#!/bin/bash

for i in 1 2 3 4 5
do
    ./genseq-mod -T 200000 dishonesta.hmm > da.seq 2> da.states
    ./testvit dishonesta.hmm da.seq > da.testvit
    ./esthmm -N 2 -M 6 da.seq
    ./genseq-mod -T 200000 dishonestb.hmm > db.seq 2> db.states
    ./testvit dishonestb.hmm db.seq > db.testvit
    ./esthmm -N 2 -M 6 db.seq
    ./genseq-mod -T 200000 dishonestc.hmm > dc.seq 2> dc.states
    ./testvit dishonestc.hmm dc.seq > dc.testvit
    ./esthmm -N 2 -M 6 dc.seq
done

for i in 10 100 1000 10000 100000
do
    echo $i
    for j in 1 2 3 4 5
    do
        ./genseq-mod -T $i dishonestc.hmm > dc.seq 2> dc.states
        ./testvit dishonestc.hmm da.seq > dc.testvit
        ./esthmm -N 2 -M 6 dc.seq
    done
    echo
done
